<extend name="template/base_index" />


<block name="area_header">
	<link rel="stylesheet" type="text/css" media="all" href="__CSS__/wxshop.css">
	<link type="text/css" rel="stylesheet" src="__CDN__/jquery-uploadify/3.2.1/uploadify.css" />
	<script type="text/javascript" src="__CDN__/jquery-uploadify/3.2.1/jquery.uploadify.min.js"></script>
	<link rel="stylesheet" type="text/css" media="all" href="__CDN__/jquery-datetimepicker/jquery.datetimepicker.css">
	<script type="text/javascript" src="__CDN__/jquery-datetimepicker/jquery.datetimepicker.js"></script>
	<link type="text/css" rel="stylesheet" href="__CDN__/select2/4.0.0/css/select2.min.css" />
	<script type="text/javascript" src="__CDN__/select2/4.0.0/js/select2.full.js"></script>
	<script type="text/javascript" src="__CDN__/select2/4.0.0/js/i18n/zh-CN.js"></script>
</block>

<block name="area_body">
	{:W('Menus/topbar')}
	<div class="admin-main container-fluid">
		{:W('Menus/left')}
		<div class="admin-main-content">
			{:W('Menus/breadcrumb')}
			<!-- 带验证 form -->
			<form class="form-horizontal well validateForm" action="{:U('Admin/Category/import')}" method="post" enctype="multipart/form-data">
				<fieldset>
					<legend>
						类目导入<div style="font-size: 12px;" class="help-block text-sm">导入子类目到选择的类目</div>
					</legend>
					<div class="form-group">
						<label for="inputname" class="col-md-2 col-lg-2 control-label">类目模板excel</label>
						<div class="col-md-3 col-lg-3">
							<a class="btn btn-link" href="__PUBLIC__/Admin/download/category.xlsx">下载</a>
						</div>
					</div>
					<div class="form-group">
						<label for="inputname" class="col-md-2 col-lg-2 control-label">所属类目</label>
						<div class="col-md-3 col-lg-3">
							<select name="cate" id="cate" style="width: 360px;">
								<volist name="cate_list" id="cate">
									<if condition="$cate['level'] lt 3">
										<option value="{$cate.id}">
											{:str_repeat("--",$cate['level']-1)}
											{$cate.name}
										</option>
									</if>
								</volist></select>
							<div class="help-block">(选择所属类目)</div>
						</div>
					</div>
					<div class="form-group">
						<label for="inputname" class="col-md-2 col-lg-2 control-label">选择上传excel</label>
						<div class="col-md-3 col-lg-3">
							<input type="file" name="import_file" />
							<div class="help-block">(选择上传excel，限定xlsx文件)</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2 col-lg-2 control-label">&nbsp;</label>
						<div class="col-lg-3 col-md-3">
							<button class="btn btn-default btn-sm"  type="submit"  ><i class="fa fa-fax"></i>开始导入</button>
	 						<a class="btn btn-default btn-sm" href="{:U('Admin/Category/index')}"><i class="fa fa-times-circle"></i> {:L('BTN_CANCEL')}</a>
						</div>
					</div>
				</fieldset>
		</form>
	</div>
	<!-- END admin-main-content -->
	</div>
	<!-- END admin-main-->
</block>

<block name="area_footer">
	<script type="text/javascript">
		$(function() {



		});
	</script>
</block>